package com.winterwar.base;

import java.util.Date;
import java.util.Set;


public class Event extends BaseObject{

	/**
	 * 
	 */
	private static final long serialVersionUID = 8008858370991111625L;
	
	private Integer eventID;
	private Convention convention;

	private Integer slotID;
	private Integer altSlotID;
	private String eventName;
	private String eventCode;
	private Integer eventType;
	private String eventDesc;
	private Integer status;
	private Integer userID;
	private Double price;
	private Integer reservedSeats;
	private Integer totalSeats;
	private Integer playerExperience;
	private String rules;
	private Integer tablesRequired;
	private Integer tableID;
	private String tableName;
	private String slotName;
	private String username;
	private Integer slots;
	private Date insertDate;
	private User user;
	private String additionalJudges;

	@SuppressWarnings("rawtypes")
	private Set players;
	
	@SuppressWarnings("rawtypes")
	public Set getPlayers(){
		return this.players;
	}
	
	@SuppressWarnings("rawtypes")
	public void setPlayers(Set players){
		this.players = players;
	}
	
    public boolean equals(Object o) {
        return ((Event) o).getEventID().intValue() == this.eventID.intValue();
    }

    public Integer getTableID() {
		return tableID;
	}

	public void setTableID(Integer tableID) {
		this.tableID = tableID;
	}

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public String getSlotName() {
		return slotName;
	}

	public void setSlotName(String slotName) {
		this.slotName = slotName;
	}

	private Integer conID;

	public Integer getConID() {
		return conID;
	}

	public void setConID(Integer conID) {
		this.conID = conID;
	}

	public Integer getReservedSeats() {
		return reservedSeats;
	}

	public void setReservedSeats(Integer reservedSeats) {
		this.reservedSeats = reservedSeats;
	}

	public Integer getTotalSeats() {
		return totalSeats;
	}

	public void setTotalSeats(Integer totalSeats) {
		this.totalSeats = totalSeats;
	}

	public Convention getConvention() {
		return convention;
	}

	public void setConvention(Convention convention) {
		this.convention = convention;
	}
	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}


	public Integer getSlotID() {
		return slotID;
	}

	public void setSlotID(Integer slotID) {
		this.slotID = slotID;
	}

	public Integer getEventID() {
		return eventID;
	}

	public void setEventID(Integer eventID) {
		this.eventID = eventID;
	}

	public String getEventName() {
		return eventName;
	}

	public void setEventName(String eventName) {
		this.eventName = eventName;
	}

	public String getEventCode() {
		return eventCode;
	}

	public void setEventCode(String eventCode) {
		this.eventCode = eventCode;
	}

	public Integer getEventType() {
		return eventType;
	}

	public void setEventType(Integer eventType) {
		this.eventType = eventType;
	}

	public String getEventDesc() {
		return eventDesc;
	}

	public void setEventDesc(String eventDesc) {
		this.eventDesc = eventDesc;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public static long getSerialVersionUID() {
		return serialVersionUID;
	}

	public int hashCode(){
		if(eventID != null)
			return eventID.hashCode();
		else {
			Integer x = 0;
			return x.hashCode();
		}
	}

	public Integer getUserID() {
		return userID;
	}

	public void setUserID(Integer userID) {
		this.userID = userID;
	}

	public Integer getPlayerExperience() {
		return playerExperience;
	}

	public void setPlayerExperience(Integer playerExperience) {
		this.playerExperience = playerExperience;
	}

	public String getRules() {
		return rules;
	}

	public void setRules(String rules) {
		this.rules = rules;
	}

	public Integer getTablesRequired() {
		return tablesRequired;
	}

	public void setTablesRequired(Integer tablesRequired) {
		this.tablesRequired = tablesRequired;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public Integer getSlots() {
		return slots;
	}

	public void setSlots(Integer slots) {
		this.slots = slots;
	}

	public Integer getAltSlotID() {
		return altSlotID;
	}

	public void setAltSlotID(Integer altSlotID) {
		this.altSlotID = altSlotID;
	}

	public Date getInsertDate() {
		return insertDate;
	}

	public void setInsertDate(Date insertDate) {
		this.insertDate = insertDate;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getAdditionalJudges() {
		return additionalJudges;
	}

	public void setAdditionalJudges(String additionalJudges) {
		this.additionalJudges = additionalJudges;
	}
	
}
